package com.mycompany.inventory.pojo;

import java.sql.Date;

public class OrderDetails {
	private String Id;
	private String orderId;
	private String productId;
	private String quantity;
	private String discount;
	private int onOrder;
	private int quantity_received;
	private String locationId;
	private Date received_date;
	private String receive_status;
	private int quantity_return;
	private int quantity_unstock;


	public OrderDetails(String id, String orderId, String productId, String quantity, String discount, int quantityReceived, int quantityReturn, int quantityUnstock,
			String locationId, Date receivedDate, String receiveStatus, int onOrder) {
		this.setId(id);
		this.setOrderId(orderId);
		this.setProductId(productId);
		this.setQuantity(quantity);
		this.setDiscount(discount);
		this.setQuantityReceived(quantityReceived);
		this.setQuantityReturn(quantityReturn);
		this.setQuantityUnstock(quantityUnstock);
		this.setLocationId(locationId);
		this.setReceivedDate(receivedDate);
		this.setReceiveStatus(receiveStatus);
		this.setOnOrder(onOrder);
	}

	public OrderDetails() {
		this.setId("");
		this.setOrderId("");
		this.setProductId("");
		this.setQuantity("");
		this.setDiscount("");
		this.setQuantityReceived(0);
		this.setLocationId("");
		this.setReceivedDate(null);
		this.setReceiveStatus("");
		this.setOnOrder(0);		
	}
	
	public void clear(){
		this.setId("");
		this.setOrderId("");
		this.setProductId("");
		this.setQuantity("");
		this.setDiscount("");
		this.setQuantityReceived(0);
		this.setLocationId("");
		this.setReceivedDate(null);
		this.setReceiveStatus("");
		this.setOnOrder(0);
	}
	
	public void copyValue(OrderDetails Obj){
		this.setId(Obj.getId());
		this.setOrderId(Obj.getOrderId());
		this.setProductId(Obj.getProductId());
		this.setQuantity(Obj.getQuantity());
		this.setDiscount(Obj.getDiscount());
		this.setQuantityReceived(Obj.getQuantityReceived());
		this.setLocationId(Obj.getLocationId());
		this.setReceivedDate(Obj.getReceivedDate());
		this.setReceiveStatus(Obj.getReceiveStatus());
		this.setOnOrder(Obj.getOnOrder());		
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return Id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		Id = id;
	}

	/**
	 * @return the orderId
	 */
	public String getOrderId() {
		return orderId;
	}

	/**
	 * @param orderId the orderId to set
	 */
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	/**
	 * @return the productId
	 */
	public String getProductId() {
		return productId;
	}

	/**
	 * @param productId the productId to set
	 */
	public void setProductId(String productId) {
		this.productId = productId;
	}

	/**
	 * @return the quantity
	 */
	public String getQuantity() {
		return quantity;
	}

	/**
	 * @param quantity the quantity to set
	 */
	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}

	/**
	 * @return the discount
	 */
	public String getDiscount() {
		return discount;
	}

	/**
	 * @param discount the discount to set
	 */
	public void setDiscount(String discount) {
		this.discount = discount;
	}

	/**
	 * @return the onOrder
	 */
	public int getOnOrder() {
		return onOrder;
	}

	/**
	 * @param onOrder the onOrder to set
	 */
	public void setOnOrder(int onOrder) {
		this.onOrder = onOrder;
	}

	/**
	 * @return the quantityReceived
	 */
	public int getQuantityReceived() {
		return quantity_received;
	}

	/**
	 * @param quantityReceived the quantityReceived to set
	 */
	public void setQuantityReceived(int quantity_received) {
		this.quantity_received = quantity_received;
	}

	/**
	 * @return the locationId
	 */
	public String getLocationId() {
		return locationId;
	}

	/**
	 * @param locationId the locationId to set
	 */
	public void setLocationId(String locationId) {
		this.locationId = locationId;
	}

	/**
	 * @return the receivedDate
	 */
	public Date getReceivedDate() {
		return received_date;
	}

	/**
	 * @param receivedDate the receivedDate to set
	 */
	public void setReceivedDate(Date received_date) {
		this.received_date = received_date;
	}

	/**
	 * @return the receiveStatus
	 */
	public String getReceiveStatus() {
		return receive_status;
	}

	/**
	 * @param receiveStatus the receiveStatus to set
	 */
	public void setReceiveStatus(String receive_status) {
		this.receive_status = receive_status;
	}

	/**
	 * @return the quantity_return
	 */
	public int getQuantityReturn() {
		return quantity_return;
	}

	/**
	 * @param quantity_return the quantity_return to set
	 */
	public void setQuantityReturn(int quantity_return) {
		this.quantity_return = quantity_return;
	}

	/**
	 * @return the quantity_unstock
	 */
	public int getQuantityUnstock() {
		return quantity_unstock;
	}

	/**
	 * @param quantity_unstock the quantity_unstock to set
	 */
	public void setQuantityUnstock(int quantity_unstock) {
		this.quantity_unstock = quantity_unstock;
	}
	
}
